import request from '@/utils/request'

// 查询测站实时图片列表
export function listStationPicR(query) {
  return request({
    url: '/waterManagement/StationPicR/list',
    method: 'get',
    params: query
  })
}

// 查询测站实时图片详细
export function getStationPicR(statCd) {
  return request({
    url: '/waterManagement/StationPicR/' + statCd,
    method: 'get'
  })
}

// 新增测站实时图片
export function addStationPicR(data) {
  return request({
    url: '/waterManagement/StationPicR',
    method: 'post',
    data: data
  })
}

// 修改测站实时图片
export function updateStationPicR(data) {
  return request({
    url: '/waterManagement/StationPicR',
    method: 'put',
    data: data
  })
}

// 删除测站实时图片
export function delStationPicR(statCd) {
  return request({
    url: '/waterManagement/StationPicR/' + statCd,
    method: 'delete'
  })
}

// 查询视频监拍测站实时图片列表
export function cameraStationPicRList(query) {
  return request({
    url: '/waterManagement/StationPicR/cameraStationPicRList',
    method: 'get',
    params: query
  })
}

//通过测站代码和时间查询视频监拍测站列表
export function gethisimg(query) {
  return request({
    url: '/waterManagement/StationPicR/cameraStationPicRByStatCdAndDate',
    method: 'get',
    params: query
  })
}
